﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Prism.Games.GalEngine.Scripts.FunctionModel;

namespace Prism.Games.GalEngine.Scripts.Data.BranchSystem
{
    [Serializable]
    public class RoleResult : MarkedObject, IItemIncrementalMarkableHost
    {
        public RoleResult(IItemIncrementalMarkable host)
        {
            this.Host = host;
        }

        private int cohesionDeviation;
        public int CohesionDeviation
        {
            get { return this.cohesionDeviation; }

            set
            {
                if (value != this.cohesionDeviation)
                {
                    this.cohesionDeviation = value;
                    this.OnPropertyChanged("CohesionDeviation");
                }
            }
        }

        private int role;

        public int Role
        {
            get { return role; }
            set
            {
                if (value != this.role)
                {
                    role = value;
                    this.OnPropertyChanged("Role");
                }
            }
        }

        private string roleName;

        public string RoleName
        {
            get { return roleName; }
            set { roleName = value; this.OnPropertyChanged("RoleName"); }
        }

        public IItemIncrementalMarkable Host
        {
            get;
            set;
        }
    }
}
